package com.moshme.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moshme.project.domain.File;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
* @author Kieyfr
* @description 针对表【file】的数据库操作Service
* @createDate 2023/8/21 15:43
*/
public interface FileService extends IService<File> {

    String upload(MultipartFile file,String path);

    List<String> templateUpload(MultipartFile file, String path);

    Boolean templateDelete(String path);

    List<String> projectUpload(MultipartFile file, String path,Long projectId,String longitude,String latitude);

    Boolean projectDelete(String path,Long projectId);

    Boolean delprojectAllFiles(Long projectId);

}
